package edu.del.springbootredisbusinesspractice.mapper;

import edu.del.springbootredisbusinesspractice.pojo.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 27917
* @description 针对表【product(商品详情表)】的数据库操作Mapper
* @createDate 2025-09-27 15:27:36
* @Entity edu.del.springbootredisbusinesspractice.pojo.Product
*/
public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 减少库存
     * @param id 商品id
     * @param count 扣减数量
     * @return 扣减结果
     */
    int reduceStock(Integer id, Integer count);
}




